#include <stdio.h>


/**
 * Definition for singly-linked list.
 * struct ListNode {
 *     int val;
 *     struct ListNode *next;
 * };
 */
typedef struct ListNode {
    int val;
    struct ListNode *next; 
}; 


struct ListNode* removeElements(struct ListNode* head, int val) {
    if (head == NULL) return head; 
    head->next = removeElements(head->next, val);
    return head->val == val ? head->next : head; 
}

// 203. Remove Linked List Elements 移除链表中的元素
// https://leetcode.com/problems/remove-linked-list-elements/
int main(int argc, const char* argv[]) {
    return 0; 
}